<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript">
			war w ;
			function del(){
				var b = window.confirm("是否删除");
				
				console.log(b);
			}
			function openWin(){
				w = open("index.html","win","width=3oo,height =300,top=100,left=200" )
			}
			function closeWin(){
				w.close();
			}
			function changeImg(){
				document.images[0].src = "img/timg1.jpg"
			}
		</script>
	</head>
	<body>
		<input type="button" name="" id="" value="删除"  onclick="del()"/>
		<input type="button" name="" id="" value="打开新窗口" onclick="openWin()"/>
		<input type="button" name="" id="" value="关闭新窗口" onclick="closeWin()"/>
		
		<img src="img/timg.jpg" width="200" >
		<input type="button" onclick="changeImg()" value="更换图片" />
	</body>
</html>
